package com.lyf.lottery.model.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.lyf.common.serialize.DeserializeToDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;


import javax.validation.constraints.NotNull;

/**
 * OptActivity添加VO
 * @author lyf
 **/
@Data
@ApiModel(description = "_request")
public class OptActivityAddVo {



	@Length(max= 50,message="活动名称长度不能超过50")
	@ApiModelProperty("活动名称")
    private String name;

	@ApiModelProperty("开始时间")
	@JsonDeserialize(using = DeserializeToDate.class)
    private java.util.Date startTime;

	@ApiModelProperty("结束时间")
	@JsonDeserialize(using = DeserializeToDate.class)
    private java.util.Date endTime;

	@ApiModelProperty("默认抽奖次数")
    private Integer defaultPumpNum;

	@ApiModelProperty("抽奖次数是否累加")
    private Integer accumulateFlag;

	@ApiModelProperty("每次抽奖积分消耗")
    private Integer integralConsume;

	@ApiModelProperty("盲盒数量")
    private Integer blindBoxNum;

	@ApiModelProperty("用户总抽奖次数上限")
    private Integer totalPumpNum;


}



